package com.lecampus.businessSecond_hand_transactions.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.sun.istack.internal.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author ${author}
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ProductCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "category_id", type = IdType.ID_WORKER_STR)
    private String categoryId;

    private String categoryName;

    @TableLogic
    private Integer deleted;

    @NotNull
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @NotNull
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
